package com.vanke.vms.management.service.serviceImpl;

import java.util.List;

import com.vanke.vms.common.domain.User;
import com.vanke.vms.management.dao.ManageUserDao;
import com.vanke.vms.management.service.ManageUserService;

public class ManageUserServiceImpl implements ManageUserService{
	ManageUserDao manageUserDao;

	public List<User> loadUser(){
		return manageUserDao.loadUser();
	}
	
	public List<User> loadForgetPassUser(){
		return manageUserDao.loadForgetPassUser();
	}
	
	public List<User> loadAllUser(){
		return manageUserDao.loadAllUser();
	}
	
	public User loadUserInfo(String userId){
		return manageUserDao.loadUserInfo(userId);
	}
	
	public void modifyUser(User user){
		manageUserDao.modifyUser(user);
	}
	
	public void deleteUser(Integer userId){
		manageUserDao.deleteUser(userId);
	}
	
	public void approveApply(Integer userId){
		manageUserDao.approveApply(userId);
	}
	
	public void removePass(Integer userId){
		manageUserDao.rejectApply(userId);
	}
	
	public void rejectApply(Integer userId){
		manageUserDao.rejectApply(userId);
	}
	
	/////////////////////////
	public ManageUserDao getManageUserDao() {
		return manageUserDao;
	}

	public void setManageUserDao(ManageUserDao manageUserDao) {
		this.manageUserDao = manageUserDao;
	}
}
